package cn.panda.edu.dao;

import cn.panda.edu.model.Courseware;
import cn.panda.edu.model.StudyResource;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 类描述：导学课件相关的的方法  
 * @author: 常晓菲
 * @date： 2018-01-15 下午7:11:42
 */
public interface CoursewareMapper {
    int deleteByPrimaryKey(Integer coursewareId);

    int insert(Courseware record);

    int insertSelective(Courseware record);

    Courseware selectByPrimaryKey(Integer coursewareId);
    /**
     * 
    * @Title: getAllCourseware 
    * @Description: 模糊查询,苑庆涛
    *@return  
    * List<Courseware>
     */
    List<Courseware> getAllCourseware(@Param("name") String name);

    int updateByPrimaryKeySelective(Courseware record);

    int updateByPrimaryKey(Courseware record);
    /**
	 *
	* @Title: selectByPageAndCondition
	* @Description: 根据条件查询资源并分页 ,顾军伟
	* @param pageIndex
	* @param condition
	* @return
	* List<StudyResource>
	 */
	List<StudyResource> selectByPageAndCondition(Map<String, Object> condition) ;
}